﻿{template 'web/_header'}
{template 'web/allorder/common_search'}
{template 'web/allorder/allorder_tabs'}
<style type='text/css'>
       .trbody td {text-align: center; vertical-align:top;border-left:1px solid #ccc; border-bottom: 1px solid #ddd;}
</style>
{if $operation == 'display'}
<div class="main">
	<div class="panel panel-default">
		<div class="panel-body table-responsive">
			<table class="table table-hover table-bordered">
				<thead class="navbar-inner">
					<tr>
						<th style="width:180px;" class="text-center">订单编号</th>
						<th style="width:220px;" class="text-center">商品信息</th>
						<th style="width:140px;" class="text-center">买家信息</th>
						<th style="width:80px;" class="text-center">商品数量</th>
                                                <th style="width:120px;" class="text-center">订单类型</th>
                                                <th style="width:80px;" class="text-center">支付方式</th>
						<th style="width:80px;" class="text-center">状态</th>
						<th style="width:180px;" class="text-center">下单时间</th>
					</tr>
				</thead>
				<tbody>
					{loop $list $item}
					<tr>
						<td class="text-center">{$item['ordersn']}</td>
						<td><img src="{php echo tomedia($item['thumb'])}" style="width: 40px; height: 40px;padding:1px;"> &nbsp;{$item['title']}</td>
						<td class="text-center">{$item['realname']}<br>{$item['mobile']}</td>
						<td class="text-center">
                                                    {$item['total']}
                                                </td>
						<td class="text-center">
                                                        {if $item['ordertype']=="normal_order"}
							<span class="label label-success">普通订单</span>
                                                        {/if}
                                                        {if $item['ordertype']=="fightgroups_order"}
							<span class="label label-success">微拼团订单</span>
                                                        {/if}
                                                        {if $item['ordertype']=="limittime_order"}
							<span class="label label-success">限时抢购订单</span>
                                                        {/if}
                                                        {if $item['ordertype']=="tuangou_order"}
							<span class="label label-success">团购订单</span>
                                                        {/if}
                                                        {if $item['ordertype']=="lottery_order"}
							<span class="label label-success">拼团抽奖直购订单</span>
                                                        {/if}
                                                        {if $item['ordertype']=="creditshop_order"}
							<span class="label label-success">积分商城订单</span>
                                                        {/if}
                                                        {if $item['ordertype']=="goldshop_order"}
							<span class="label label-success">金币商城订单</span>
                                                        {/if}
                                                        {if $item['ordertype']=="realgoods_order"}
							<span class="label label-success">真实物品订单</span>
                                                        {/if}
						</td>
                                                <td class="text-center">
                                                        {if $item['paytype']==21}
							<span class="label label-success">微信支付</span>
                                                        {/if}
                                                        {if $item['paytype']==1}
							<span class="label label-danger">余额支付</span>
                                                        {/if}
                                                        {if $item['paytype']==0}
							<span class="label label-danger">不用支付</span>
                                                        {/if}
						</td>
                                                <td class="text-center">
						<span class="label label-info">待发货</span>
                                                </td>
						<td class="text-center">{php echo date('Y-m-d H:i:s', $item['createtime'])}</td>
					</tr>
					{/loop}
				</tbody>
			</table>
		</div>
	</div>
</div>
<script type="text/javascript">
	require(['daterangepicker'], function($){
		$('.daterange').on('apply.daterangepicker', function(ev, picker) {
			$('#form1')[0].submit();
		});
	});
</script>
{/if}
<script>
	require(['bootstrap'],function($){
		$('.btn').hover(function(){
			$(this).tooltip('show');
		},function(){
			$(this).tooltip('hide');
		});
	});
</script>
        {template 'web/_footer'}

